package exercise6;
public class Candidate {
	private String name;
	public int sum;
	public Vote vote=new Vote();
	private int numberOfCandidates;
	public Candidate(){};
	public Candidate(String name,Vote vote) {
		this.name=name;
		this.vote=vote;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Vote getVote() {
		return vote;
	}
	public void setVote(Vote vote) {
		this.vote = vote;
	}
	public int getNumberOfCandidates() {
		return numberOfCandidates;
	}
	public void setNumberOfCandidates(int numberOfCandidates) {
		this.numberOfCandidates = numberOfCandidates;
	}
	@Override
	public String toString() {
		return "参赛人数为：" + numberOfCandidates;
	}
	
	
}